package com.smilive.start.netty.rpc.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: netty
 * @Date: 2022-01-11 10:03
 * @Author: smilive
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponseMessage extends Message {

    /**
     * 返回值
     */
    private Object returnValue;
    /**
     * 异常值
     */
    private Exception exceptionValue;


    @Override
    public int getMessageType() {
        return RpcResponseMessage;
    }
}
